package com.gitee.lichoking.mysoap.convert;

import com.gitee.lichoking.mysoap.util.StringUtils;
import org.dom4j.Node;

/**
 * Short转换器
 *
 * @author lich
 * @date 2021/6/1
 */
public class ShortConverter implements Converter<Short> {
    @Override
    public Short nodeTextToJavaData(Node node) {
        String text = node.getText();
        if (StringUtils.isEmpty(text)) {
            return null;
        }
        return Short.valueOf(text);
    }
}
